package com.mud.mudcommune.utils;

import android.app.Activity;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhoujin on 2016/12/9.
 */

public class ListActivity {
    private static List<Activity> list = new ArrayList<>();

    public static void putActivity(Activity activity) {
        list.add(activity);
    }

    public static void finishAllActivity( ) {
        for (Activity activity : list) {
            activity.finish();
        }
        list.clear();
    }

}
